<?php
namespace core\tv\validate;

use core\Validate;

class StoreValidate extends Validate
{

    /**
     * 规则
     *
     * @var unknown
     */
    protected $rule = [
        'store_name' => 'require',
        'province' => 'require',
        'city' => 'require',
        'area' => 'require',
        'address' => 'require',
        'tel' => 'require',
        'principal' => 'require',
        'principal_phone' => 'require',
        'uuid' => 'require',
        'group_id' => 'require'
    ];

    /**
     * 提示
     *
     * @var unknown
     */
    protected $message = [
        'store_name.require' => '门店名称为空',
        'province.require' => '门店所在省为空',
        'city.require' => '门店所在市为空',
        'area.require' => '门店所在区县为空',
        'address.require' => '门店详细地址为空',
        'tel.require' => '门店电话为空',
        'principal.require' => '负责人为空',
        'principal_phone.require' => '负责人手机为空',
        'uuid.require' => 'UUID为空',
        'group_id.require' => '请选择门店分组',
        'is_ondemand.require' => '请选择点播权限',
        'status.require' => '请选择门店状态'
    ];

    /**
     * 场景
     *
     * @var unknown
     */
    protected $scene = [
        'common' => [
            'store_name',
            'province',
            'area',
            'address',
            'tel',
            'principal',
            'principal_phone',
            'group_id',
            'is_ondemand',
            'status'
        ]
    ];
}